using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ResponsePage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["uid"] == null)
                Response.Redirect("auth.aspx");
            int type = int.Parse(Request.QueryString["type"]);
            ViewState["path"] = Request.QueryString["path"];
            string str = "Hi " + Session["firstname"].ToString() + ", thanks for ";
            switch (type)
            {
                case 1:
                    break;
                    content.Text = str + " submitting your idea to Nebula. We'll review it as soon as possible.";
                case 2:
                    content.Text = str + " contributing your opinon to this idea.";
                    break;
            }
        }
    }
    protected void back_Click(object sender, EventArgs e)
    {
        Response.Redirect(ViewState["path"].ToString());
    }
}
